import axios from '@/libs/request/axios'
// 获取联系人列表
export const getContactList = (params) => {
    return axios.request({
        url: 'apply/cust/getContactList',
        params: params,
        method: 'post'
    })
}
// 获取客户信息列表
export const getCustomerList = (params) => {
    return axios.request({
        url: "apply/cust/getCustomerList",
        params: params,
        method: "post"
    })
}

/**
 * 保存客户信息
 * @param params
 * @returns {*}
 */
export const saveCustomerInfo = (params) => {
    return axios.request({
        url: 'apply/cust/saveCustomerInfo',
        data: params,
        method: "post"
    })
}

/**
 *更新
 * @param id
 * @param params
 * @returns {*}
 */
export const updateCustomerInfo = (params) => {
    return axios.request({
        url: `apply/cust/updateCustomerInfo`,
        data: params,
        method: 'POST'
    })
}
// deleteCustomerInfo

/**
 * 删除
 * @param params
 * @returns {*}
 */
export const deleteCustomerInfo = (params) => {
    return axios.request({
        url: `apply/cust/deleteCustomerInfo`,
        data: params,
        method: 'DELETE'
    })

}
/**
 * 删除
 * @param params
 * @returns {*}
 */
export const deleteAddressInfo = (params) => {
    return axios.request({
        url: `apply/cust/deleteAddressInfo`,
        data: params,
        method: 'DELETE'
    })

}/**
 * 删除
 * @param params
 * @returns {*}
 */
export const deleteContectInfo = (params) => {
    return axios.request({
        url: `apply/cust/deleteContectInfo`,
        data: params,
        method: 'DELETE'
    })
}
/**
 * 删除
 * @param params
 * @returns {*}
 */
export const updateSignParams = (params) => {
    return axios.request({
        url: `apply/cust/updateSignParams`,
        data: params,
        method: 'post'
    })
}
